<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script>
        //1. ReferenceError 引用错误
        // console.log(a);
        
        //2. TypeError 类型错误
        // let b = 100;
        // b();

        //3. RangeError 取值范围错误
        // let arr = new Array(-1);

        //4. SyntaxError 语法错误
        // let str = 'abc;
        // let fn = function()}

        // console.log(arr);



    </script>
</body>
</html>